package com.cet.spring_batch_study.client;

import com.cet.spring_batch_study.utils.ConvertCsvDataUtil;

import java.util.List;

public class CsvFormatConvertTest {

    public static void main(String[] args) throws IllegalAccessException {
        Student s1 = new Student();
        s1.setAge(15);
        s1.setName("李四");
        s1.setGrade("小学三年级");

        Student s2 = new Student();
        s2.setAge(16);
        s2.setName("沐沐");
        s2.setGrade("初中一年级");

        List<Student> testList = List.of(s1, s2);

        System.out.println(ConvertCsvDataUtil.listToCsvData(testList, Student.class));
    }
}
